package com.sso.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author songyouchao
 * @ClassName RoleUser.java
 * @Description
 * @createTime 2021年08月15日
 */
@Data
@Entity
@Table(name="ROLE_USER")
public class RoleUser {

    @Id
    @Column(name = "ID", columnDefinition = "VARCHAR(32)")
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private Integer id;

    @Column(name = "UID", columnDefinition = "VARCHAR(32)")
    private String uid;

    @Column(name = "RID", columnDefinition = "VARCHAR(32)")
    private String rid;
}
